const { defineConfig } = require("@vue/cli-service");
let path=require("path")
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  // 设置@
  configureWebpack:(config)=>{
    config.resolve={
      extensions:['.js','.json','.vue'],
      alias:{
        '@':path.resolve(__dirname,'./src')
      }
    }
  },
  // 设置代理
  devServer:{
    host:'0.0.0.0',
    proxy:{
      '/api':{
        target:"http://localhost:3000",
        changeOrigin:true,
        pathRewrite:{
          '^/api':'/api'
        }
      }
    }
  },
});
